n = int(input())
num = 1
for day in range(1, n):
    num = (num + 1) * 2
print(f"{num}")